//
//  ProjectDefine.h
//  Project
//
//  Created by 冯东辉 on 2018/9/11.
//  Copyright © 2018年 FengDongHui. All rights reserved.
//

#ifndef ProjectDefine_h
#define ProjectDefine_h

//#define BASE_URL @"http://10.254.204.130:89/api"
//#define BASE_URL @"http://124.205.224.233:89/api"
#define BASE_URL @"http://111.8.20.247:89/api"

/**
 * 微信APPID
 */
#define WXAppID @"wxa6d0b26608801eb2"

/**
 * 手机号
 */
#define USER_PHONE_NUM @"User_Phone_Num"
/**
 * 用户可查看的城市
 */
#define USER_CITY_DATA @"User_City_Data"
/**
 * 当前展示的城市
 */
#define USER_INFO_CITY @"User_info_city"
/**
 * 账号是否切换登录
 */
#define IS_CHANGE_USER @"Is_Change_User"
/**
 * 手势密码
 */
#define DBGuestureLockPaswdResult @"Me_i36_DBGuestureLock_Password_Result"

/**
 * 屏幕宽度
 */
#define GET_SCREEN_WIDTH() \
[[UIScreen mainScreen] bounds].size.width

/**
 * 屏幕高度
 */
#define GET_SCREEN_HEIGHT() \
[[UIScreen mainScreen] bounds].size.height

#define SafeAreaTopHeight (GET_SCREEN_HEIGHT() >= 812.0 ? 88 : 64)
#define SafeAreaBottomHeight (GET_SCREEN_HEIGHT() >= 812.0 ? 83 : 49)

/**
 * 16进制32位色的UIColor对象
 */
#define UICOLOR_HEX(x) \
[UIColor \
colorWithRed:(float)((float)((x>>16)&0xFF)/0xFF) \
green:(float)((float)((x>>8)&0xFF)/0xFF) \
blue:(float)((float)(x&0xFF)/(float)0xFF) \
alpha:(float)((float)((x>>24)&0xFF)/(float)0xFF) \
]

//色值转换RGB
#define kUIColorFromRGB(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define Base_color UICOLOR_HEX(0xff179bfa)

#endif /* ProjectDefine_h */
